package com.yuda.common.api.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yuda.common.core.annotation.Excel;
import com.yuda.common.core.web.domain.BaseEntity;

/**
 * 公共学科对象 sparta_subject
 *
 * @author wyn
 * @date 2021-05-13
 */
public class SpartaSubject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 科目id */
    private Long id;

    /** 科目名称 */
    @Excel(name = "科目名称")
    private String name;

    /** 关联的科目 */
    @Excel(name = "关联的科目")
    private String relationSubjectId;

    /** 学校描述 */
    @Excel(name = "学校描述")
    private String desc;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setRelationSubjectId(String relationSubjectId)
    {
        this.relationSubjectId = relationSubjectId;
    }

    public String getRelationSubjectId()
    {
        return relationSubjectId;
    }
    public void setDesc(String desc)
    {
        this.desc = desc;
    }

    public String getDesc()
    {
        return desc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("relationSubjectId", getRelationSubjectId())
            .append("desc", getDesc())
            .toString();
    }
}
